home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_02 / nonport / mvwinser.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-17  |  1.0 KB  |  41 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #undef    mvwinsert
  4.  
  5. #ifdef PDCDEBUG
  6. char *rcsid_mvwinser = "$Header: C:\CURSES\nonport\RCS\mvwinser.c 2.1 1993/06/18 20:22:11 MH Rel MH $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   mvwinsert()    - Insert line
  15.  
  16.   PDCurses Description:
  17.      A blank line is inserted above the current line and the bottom
  18.      line is lost.
  19.  
  20.      This routine is provided as an extension to the X/Open interface.
  21.  
  22.   PDCurses Return Value:
  23.      These functions return OK on success and ERR on error.
  24.  
  25.   PDCurses Errors:
  26.      It is an error to call this function with a NULL window pointer.
  27.  
  28.   Portability:
  29.      PDCurses    int mvwinsertln( WINDOW win, int y, int x );
  30.  
  31. **man-end**********************************************************************/
  32.  
  33. int    mvwinsertln(WINDOW *win, int y, int x)
  34. {
  35. #ifdef PDCDEBUG
  36.     if (trace_on) PDC_debug("mvwinsertln() - called: y %d x %d\n",y,x);
  37. #endif
  38.  
  39.     return( (wmove(win, y, x) == ERR) ? ERR : winsertln(win) );
  40. }
  41.